import { axios } from '@/utils/request'

/**
 * 查询房间押金表
 *
 * @author anti
 * @date 2021-04-18 17:08:42
 */
export function roomDepositPage (parameter) {
  return axios({
    url: '/roomDeposit/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 房间押金表列表
 *
 * @author anti
 * @date 2021-04-18 17:08:42
 */
export function roomDepositList (parameter) {
  return axios({
    url: '/roomDeposit/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 根據房間id房间押金表列表
 *
 * @author anti
 * @date 2021-04-18 17:08:42
 */
 export function getDepositListByRoomId (parameter) {
  return axios({
    url: '/roomDeposit/getDepositListByRoomId/' + parameter,
    method: 'get',
    params: parameter
  })
}

export function getDepositListByLeaseId (parameter) {
  return axios({
    url: '/roomDeposit/getDepositListByLeaseId/' + parameter,
    method: 'get',
    params: parameter
  })
}

/**
 * 添加房间押金表
 *
 * @author anti
 * @date 2021-04-18 17:08:42
 */
export function roomDepositAdd (parameter) {
  return axios({
    url: '/roomDeposit/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑房间押金表
 *
 * @author anti
 * @date 2021-04-18 17:08:42
 */
export function roomDepositEdit (parameter) {
  return axios({
    url: '/roomDeposit/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除房间押金表
 *
 * @author anti
 * @date 2021-04-18 17:08:42
 */
export function roomDepositDelete (parameter) {
  return axios({
    url: '/roomDeposit/delete',
    method: 'post',
    data: parameter
  })
}
